add_subdirectory(spdlog)

set(LOG_SRCS
        log_manager.cpp
        logging.cpp
        access_recorder.cpp
        trace.cpp
        failure_handler.cpp
        )

set(LOG_LIBS
        ds_flags
        Threads::Threads
        common_util
        hard_disk_exporter
        ds_spdlog
        absl::symbolize
        absl::failure_signal_handler
        )

add_library(common_log STATIC ${LOG_SRCS})
target_link_libraries(common_log PRIVATE ${LOG_LIBS})
